<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新闻详情</title>
</head>
<body>
<jsp:include page="header.jsp"></jsp:include>

<div id="container">
    <div id="buttons">
        <span index="1" class="on"></span>
        <span index="2"></span>
        <span index="3"></span>
    </div>
    <a href="javascript:;" id="prev" class="arrow"><img src="${ctx}/static/pc/img/l.png"/></a>
    <a href="javascript:;" id="next" class="arrow"><img src="${ctx}/static/pc/img/r.png"/></a>
</div>

<ul class="breadnav clearfix">
    <li class="bnav-item"><a href="${ctx}/index/list.do">首页</a></li>
    <li class="bnav-item">&lt;</li>
    <li class="bnav-item"><a href="${ctx}/news/list.do">新闻资讯</a></li>
    <li class="bnav-item">&lt;</li>
    <li class="bnav-item"><a href="javascript:;">${news.news_title}</a></li>
</ul>
<div class="news-conwrap">
    ${news.news_content}
    <a href="${ctx}/news/list.do" class="shop-icon">返回列表页</a>
        <h4  id="read">阅读量:${news.news_readnums}</h4>
</div>


</body>
<!--jq调用-->

<script>
    $(function () {
        setTimeout(function () {
            var id = ${news.news_id};
            var mydata = {"news_id": id}
            $.post("${ctx}/news/news-read.do", mydata, function (data) {
                if (data=='success'){
                    console.info("增加成功")
                }
            }, "text")
        }, "3000");
    })

</script>
</html>

